package com.imooc.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * Created by Mark on 2017/9/27.
 */
@Aspect
@Component
public class MyAspect {
    //前置通知 public 所有返回值类型  com.xxx包下  *（..）任何方法名 任何参数
    @Before("execution(public * com.imooc.controller.GirlController.*(..))")
    public void log(){
        System.out.println("-- - - - - -- = = = = = = == = = = = = =");
    }
}
